<template>
  <div class="mainContent">
    <div class="headerTitle">综合监督管理平台-危化品企业监管</div>
    <!-- 项目选择切换 -->
    <div class="topProjectSelect">
      <div @click="goOthers('space')" class="top1"></div>
      <div @click="goOthers('dust')" class="top1 top2"></div>
      <div @click="goOthers('danger')" class="top1 top3"></div>
      <div @click="goOthers('')" class="top1 top4"></div>
      <div @click="goOthers('')" class="top1 bottom1"></div>
      <div @click="goOthers('')" class="top1 bottom1 bottom2"></div>
      <div @click="goOthers('factory')" class="top1 bottom1 bottom3"></div>
      <div @click="goOthers('')" class="top1 bottom1 bottom4"></div>
    </div>
    <!-- 左右侧边内容 -->
    <div class="content">
      <div class="commonStatic aside-left-show">
        <div class="innerTitle">
          <div class="descTitle">公共统计数据</div>
          <div class="detail">查看详情</div>
        </div>
        <div class="company" @click="showCompanyDialog">
          <div class="companyNum">{{ publicData.companyAccess }}</div>
          <div class="companyNumR">+{{ NewDate.companyAccessNew }}</div>
        </div>
        <div class="signal">
          <div class="signalNum">{{ publicData.sceneInfo }}</div>
          <div class="signalNumR">+{{ NewDate.sceneInfoNew }}</div>
        </div>
        <div class="equip">
          <div class="equipNum">{{ publicData.deviceAccess }}</div>
          <div class="equipNumR">+{{ NewDate.deviceAccessNew }}</div>
        </div>
        <div class="video">
          <div class="videoNum">{{ publicData.videoAccess }}</div>
          <div class="videoNumR">+{{ NewDate.videoAccessNew }}</div>
        </div>
      </div>

      <!-- 风险企业 -->
      <div class="L2 aside-left-show">
        <div class="innerTitle">
          <div class="descTitle">风险企业</div>
          <div class="detail">查看详情</div>
        </div>
        <div class="selectCondition">
          <div class="leftS">总览</div>
          <div class="middle">
            <div class="selectTitle">
              <div
                style="
                  white-space: nowrap;
                  text-overflow: ellipsis;
                  overflow: hidden;
                "
              >
                {{ areaCodeValue }}<i class="el-icon-arrow-down"></i>
              </div>
              <div class="selectBox" v-if="areaCodeList.length > 0">
                <div
                  class="selectItem"
                  v-for="item in areaCodeList"
                  :key="item.id"
                  @click="chooseArea(item.dictName, item.id)"
                >
                  {{ item.dictName }}
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="fengxianNum">
          <div class="oneNum">{{ levelOneRiskCount }} <span>家</span></div>
          <div class="towNum">{{ levelTwoRiskCount }} <span>家</span></div>
        </div>

        <!-- 列表 -->
        <div class="listBox">
          <div class="listBox_title">
            <div class="title_l">风险等级</div>
            <div class="title_r">企业名称</div>
          </div>
          <div class="listBody">
            <div
              class="subListBody"
              v-for="(item, index) in companyList"
              :key="index"
            >
              <div class="listBody_1L" v-if="item.riskLevel === 1">
                <div class="listBody_1L_icon"></div>
                <div class="listBody_1L_text">一级风险</div>
              </div>
              <div class="listBody_2L" v-else>
                <div class="listBody_2L_icon"></div>
                <div class="listBody_2L_text">二级风险</div>
              </div>
              <div class="listBody_R">{{ item.enterpriseName }}</div>
            </div>
          </div>
        </div>
      </div>

      <!-- 实时监督 -->
      <div class="R1 aside-right-show">
        <div class="innerTitle">
          <div class="descTitle">实时监督</div>
          <div class="detail">查看详情</div>
        </div>
        <div class="alarmWarningC">
          <div
            @click="chooseShishiToday('day')"
            :class="['alarmDesc', { active: isShishiToday === 'day' }]"
          >
            今日
          </div>
          <div
            @click="chooseShishiToday('week')"
            :class="['alarmDesc', { active: isShishiToday === 'week' }]"
          >
            本周
          </div>
          <div
            @click="chooseShishiToday('month')"
            :class="['alarmDesc', { active: isShishiToday === 'month' }]"
          >
            本月
          </div>
        </div>
        <div class="liuchengNum">
          <div class="qiyeNum">{{ this.shishiData.DangerAlarmNum }}</div>
          <div class="daibanNum">{{ this.shishiData.DangerVideoNum }}</div>
          <div class="wanjieNum">{{ this.shishiData.Danger }}</div>
        </div>
      </div>

      <!-- 危险源情况 -->
      <div class="R2 aside-right-show">
        <div class="innerTitle">
          <div class="descTitle">危险源情况</div>
          <div class="detail">查看详情</div>
        </div>
        <div class="alarmWarningC" style="margin-top: 4px">
          <div
            @click="chooseYuanToday('day')"
            :class="['alarmDesc', { active: isYuanToday === 'day' }]"
          >
            今日
          </div>
          <div
            @click="chooseYuanToday('week')"
            :class="['alarmDesc', { active: isYuanToday === 'week' }]"
          >
            本周
          </div>
          <div
            @click="chooseYuanToday('month')"
            :class="['alarmDesc', { active: isYuanToday === 'month' }]"
          >
            本月
          </div>
        </div>
        <div class="liuchengNum">
          <div class="oneNum">{{ weiYuanData.rank1Count }}</div>
          <div class="towNum">{{ weiYuanData.rank2Count }}</div>
          <div class="threeNum">{{ weiYuanData.rank3Count }}</div>
          <div class="fourNum">{{ weiYuanData.rank4Count }}</div>
        </div>
        <div id="R2_echarts"></div>
      </div>
    </div>
    <div class="sheBeiZuo1dialogVisible" v-if="isDialogShow === 'danger'">
      <div class="closeX">
        <img
          src="@/assets/factory/组 39@1x.png"
          alt=""
          @click="closeDialogShow"
        />
      </div>
      <div class="title">接入企业</div>
      <div class="table">
        <el-table
          :data="tableData"
          style="width: 100%; border: 'none'"
          :header-row-style="{
            backgroundColor: '#053A3B',
            color: '#2FC4B2',
            borderBottom: '1px solid #022627',
            borderRight: '1px solid #022627',
            height: '32px',
          }"
          :header-cell-style="{
            backgroundColor: '#053A3B',
            color: '#2FC4B2',
            borderBottom: '1px solid #022627',
            height: '32px',
            padding: '7px 0',
          }"
          :row-style="{
            backgroundColor: '#053A3B',
            color: '#2FC4B2',
            borderBottom: '1px solid #022627',
            height: '32px',
          }"
          :cell-style="{
            borderBottom: '1px solid #022627',
            height: '32px',
            padding: '7px 0',
          }"
          @row-click="goThirdView"
        >
          <el-table-column
            header-align="center"
            prop="companyName"
            label="接入单位"
            width="220"
            :show-overflow-tooltip="true"
          >
          </el-table-column>
          <el-table-column
            header-align="center"
            prop="companyPrincipal"
            label="单位负责人"
            width="120"
            :show-overflow-tooltip="true"
          >
          </el-table-column>
          <el-table-column
            header-align="center"
            prop="companyPhone"
            label="负责人电话"
            width="180"
            :show-overflow-tooltip="true"
          >
          </el-table-column>
          <el-table-column
            header-align="center"
            prop="companyAddress"
            label="单位地址"
            width="300"
            :show-overflow-tooltip="true"
          >
          </el-table-column>
          <el-table-column
            header-align="center"
            prop="equipStatusName"
            label="单位状态"
            width="80"
          >
            <template slot-scope="scope">
              <span v-if="scope.row.companyState === '营业'">{{
                scope.row.companyState
              }}</span>
              <span v-else style="color: #ff9c9c">{{
                scope.row.companyState
              }}</span>
            </template>
          </el-table-column>
        </el-table>
      </div>
      <div class="footerPage">
        <el-pagination
          :current-page="params.page"
          :page-size="10"
          background
          layout="prev, pager, next"
          :total="totalItemCount"
          @current-change="currentPage"
        />
      </div>
    </div>
    <div class="areaSelect"></div>
    <div class="footerNav"></div>
  </div>
</template>

<script>
import {
  realTimeMonitorDanger,
  dangerHazardSituation,
  dangerHazardEnterprise,
  publicNewDateMonth,
  companysNum,
} from '@/api/danger'
import { companyDetails } from '@/api/home'
export default {
  name: 'dangerVue',
  props: {},
  components: {},
  data() {
    return {
      isShishiToday: 'day',
      isYuanToday: 'day',
      areaCodeList: [],
      areaCodeValue: '按区域查看',
      tableList: [
        {
          level: 1,
          name: '',
        },
      ],
      shishiData: {
        Danger: '-',
        DangerAlarmNum: '-',
        DangerVideoNum: '-',
      },
      weiYuanData: {
        rank1Count: '-',
        rank1Percentage: '-',
        rank2Count: '-',
        rank2Percentage: '-',
        rank3Count: '-',
        rank3Percentage: '-',
        rank4Count: '-',
        rank4Percentage: '-',
        total: '-',
      },
      levelOneRiskCount: '-',
      levelTwoRiskCount: '-',
      companyList: [],
      NewDate: {
        companyAccessNew: '-',
        deviceAccessNew: '-',
        sceneInfoNew: '-',
        videoAccessNew: '-',
      },
      publicData: {
        companyAccess: '-',
        deviceAccess: '-',
        sceneInfo: '-',
        videoAccess: '-',
      },
      isDialogShow: '',
      tableData: [],
      totalItemCount: null,
      params: {
        pageNum: 1,
        pageSize: 10,
      },
    }
  },
  methods: {
    // 30天增长数据
    async getPublicNewDateMonth(type) {
      const res = await publicNewDateMonth({ type })
      this.NewDate = res.data
      console.log(this.NewDate)
      console.log('30天增长数据', res)
    },
    // 30天增长数据
    async getCompanysNum(type) {
      const res = await companysNum({ type })
      this.publicData = res.data
      console.log('公共数据', res)
    },
    // 实时监督
    async getRealTimeMonitorDanger(type) {
      const res = await realTimeMonitorDanger({ type })
      this.shishiData = res.data
      console.log(type, res)
    },
    // 危险源情况
    async getDangerHazardSituation(type) {
      const res = await dangerHazardSituation({ type })
      this.weiYuanData = res.data
      this.showR2Echarts()
      console.log('危险源', type, res)
    },
    // 风险企业
    async getDangerHazardEnterprise() {
      const res = await dangerHazardEnterprise()
      this.weiYuanData = res.data
      this.companyList = res.data.companyList
      this.levelOneRiskCount = res.data.levelOneRiskCount
      this.levelTwoRiskCount = res.data.levelTwoRiskCount
      this.showR2Echarts()
      console.log('风险企业', res)
    },
    chooseShishiToday(params) {
      this.getRealTimeMonitorDanger(params)
      this.isShishiToday = params
    },
    chooseYuanToday(params) {
      this.getDangerHazardSituation(params)
      this.isYuanToday = params
    },
    goOthers(path) {
      console.log(this.$route.path)
      if (path !== this.$route.path.substring(1)) {
        this.$router.push(
          `/${path}`,
          () => {},
          () => {}
        )
      } else {
        this.$router.push('/home')
      }
    },
    showR2Echarts() {
      var myChart = this.$echarts.init(document.getElementById('R2_echarts'))

      var data = [
        {
          name: '一级危险源',
          value: this.weiYuanData.rank1Count,
        },
        {
          name: '二级危险源',
          value: this.weiYuanData.rank2Count,
        },
        {
          name: '三级危险源',
          value: this.weiYuanData.rank3Count,
        },
        {
          name: '四级危险源',
          value: this.weiYuanData.rank4Count,
        },
      ]
      let newArr = data.filter((item) => item.value !== 0)
      if (newArr.length === 0) {
        newArr = data
      }
      myChart.setOption({
        backgroundColor: 'transparent',
        grid: {
          // left: '10%',
          // right: '20%'
        },
        tooltip: {
          trigger: 'item',
          formatter: '{b} : {d}% <br/> {c}',
        },
        color: ['#de0202', '#f3772a', '#f9bb5e', '#2b63ff'],
        title: {
          text: this.weiYuanData.total,
          x: 'center',
          y: 'center',
          textStyle: {
            fontSize: 20,
            fontWeight: 'normal',
            color: '#fff',
          },
        },
        series: [
          {
            // color: ['#de0202', '#f3772a', '#f9bb5e', '#2b63ff'],
            type: 'pie',
            radius: ['45', '80'],
            labelLine: {
              normal: {
                length: 25,
                length2: 90,
                lineStyle: {
                  type: 'solid',
                },
              },
            },
            label: {
              normal: {
                formatter: (params) => {
                  return (
                    '{b| ' +
                    params.name +
                    '}  ' +
                    '\n' +
                    '{c|' +
                    params.percent +
                    '%}'
                  )
                },
                borderWidth: 0,
                borderRadius: 4,
                padding: [100, -70],
                height: -10,
                fontSize: 13,
                align: 'center',
                // color: ['#de0202', '#f3772a', '#f9bb5e', '#2b63ff'],
                rich: {
                  b: {
                    fontSize: 14,
                    lineHeight: 20,
                    color: 'inherit',
                    margin: [0, 0, 90, 0],
                  },
                  c: {
                    fontSize: 20,
                    lineHeight: 40,
                    color: '#fff',
                    padding: [0, 10, 5, 0],
                    align: 'center',
                  },
                },
              },
            },
            data: newArr,
          },
        ],
      })
    },
    showCompanyDialog() {
      this.companyDetails(this.params)
      this.isDialogShow = 'danger'
    },
    closeDialogShow() {
      this.isDialogShow = ''
    },
    currentPage(pageNum) {
      console.log(pageNum)
      const params = {
        identificationCode: 'SC005',
        pageNum: pageNum,
        pageSize: this.params.pageSize,
      }
      this.companyDetails(params)
    },
    async companyDetails(params) {
      const res = await companyDetails({
        identificationCode: 'SC005',
        pageNum: params.pageNum,
        pageSize: params.pageSize,
      })
      this.tableData = res.data
      this.totalItemCount = res.total
    },
    goThirdView(row) {
      if (row.companyName.trim() === '安吉美欣达再生资源利用有限公司') {
        window.location.href =
          'https://lindro.cn/yx-system/huzhouGovernment/ajnhScreen/index.html'
      } else if (row.companyName.trim() === '湖州欧美化学有限公司') {
        window.location.href =
          'https://lindro.cn/yx-system/huzhouGovernment/omhxScreen/index.html'
      }
    },
  },
  mounted() {
    this.showR2Echarts()
    this.chooseYuanToday('day')
  },
  created() {
    this.getDangerHazardSituation('day')
    this.getRealTimeMonitorDanger('day')
    this.getDangerHazardEnterprise()
    this.getPublicNewDateMonth('SC005')
    this.getCompanysNum('SC005')
  },
  watch: {},
  computed: {},
  filters: {},
}
</script>

<style scoped lang="scss">
.mainContent {
  width: 1920px;
  height: 1080px;
  position: relative;
  background-image: url('@/assets/common/WechatIMG2357.png');
  background-size: cover;
  background-repeat: no-repeat;
}
.content {
  .alarmWarningC {
    box-sizing: border-box;
    width: 420px;
    padding-top: 32px;
    display: flex;
    justify-content: right;
    align-items: center;
    padding-right: 15px;
    font-size: 12px;

    .alarmDesc {
      width: 40px;
      height: 20px;
      line-height: 20px;
      text-align: center;
      color: #59dace;
      border-radius: 2px;
      margin-left: 5px;
      background-color: #022627;
      border: 1px solid #59dace;
      cursor: pointer;
    }
    .active {
      background-color: #5de1d4;
      color: #022627;
    }
  }
  .commonStatic {
    background-image: url('@/assets/home/组 48059@1x.png');
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    left: 11px;
    top: 72px;
    width: 420px;
    height: 282px;
    position: relative;
    .innerTitle {
      color: #fff;
      background-image: url('@/assets/home/组 48060@1x.png');
      background-size: cover;
      background-repeat: no-repeat;
      width: 405px;
      box-sizing: border-box;
      height: 36px;
      font-size: 20px;
      font-weight: bold;
      position: relative;
      .descTitle {
        position: absolute;
        left: 15px;
        top: 7px;
      }
      .detail {
        color: #5de1d4;
        font-size: 12px;
        font-weight: bold;
        position: absolute;
        top: 5px;
        left: 327px;
        cursor: pointer;
      }
    }

    .company {
      background-image: url('@/assets/home/组 231@1x.png');
      background-size: cover;
      background-repeat: no-repeat;
      width: 180px;
      height: 92px;
      position: absolute;
      left: 20px;
      top: 58px;
      cursor: pointer;
      .companyNum {
        position: absolute;
        left: 74px;
        top: 15px;
        color: #fff;
        font-size: 28px;
        font-weight: bold;
      }
      .companyNumR {
        position: absolute;
        top: 2px;
        right: 6px;
        color: #103f3a;
        font-size: 12px;
        font-weight: bold;
      }
    }
    .signal {
      background-image: url('@/assets/home/组 48062@1x.png');
      background-size: cover;
      background-repeat: no-repeat;
      width: 180px;
      height: 92px;
      position: absolute;
      left: 220px;
      top: 58px;
      .signalNum {
        position: absolute;
        left: 74px;
        top: 15px;
        color: #fff;
        font-size: 28px;
        font-weight: bold;
      }
      .signalNumR {
        position: absolute;
        top: 2px;
        right: 6px;
        color: #103f3a;
        font-size: 12px;
        font-weight: bold;
      }
    }
    .equip {
      background-image: url('@/assets/home/组 229@1x (1).png');
      background-size: cover;
      box-sizing: border-box;
      background-repeat: no-repeat;
      background-position: center;
      width: 180px;
      height: 93px;
      position: absolute;
      left: 20px;
      top: 166px;
      .equipNum {
        position: absolute;
        left: 74px;
        top: 15px;
        color: #fff;
        font-size: 28px;
        font-weight: bold;
      }
      .equipNumR {
        position: absolute;
        top: 2px;
        right: 6px;
        color: #103f3a;
        font-size: 12px;
        font-weight: bold;
      }
    }

    .video {
      background-image: url('@/assets/home/组 222@1x (1).png');
      background-size: cover;
      box-sizing: border-box;
      background-repeat: no-repeat;
      background-position: center;
      width: 180px;
      height: 93px;
      position: absolute;
      left: 220px;
      top: 166px;
      .videoNum {
        position: absolute;
        left: 74px;
        top: 15px;
        color: #fff;
        font-size: 28px;
        font-weight: bold;
      }
      .videoNumR {
        position: absolute;
        top: 2px;
        right: 6px;
        color: #103f3a;
        font-size: 12px;
        font-weight: bold;
      }
    }
  }
  .L2 {
    background-image: url('@/assets/danger/L2.png');
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    width: 420px;
    height: 672px;
    top: 83px;
    left: 11px;
    position: relative;
    .selectCondition {
      box-sizing: border-box;
      width: 420px;
      padding-top: 33px;
      display: flex;
      justify-content: right;
      align-items: center;
      padding-right: 15px;
      font-size: 12px;

      .leftS {
        width: 40px;
        height: 20px;
        line-height: 20px;
        text-align: center;
        background-color: #5de1d4;
        color: #022627;
        border-radius: 2px;
        cursor: pointer;
      }
      .middle {
        margin-left: 2px;
        .selectTitle {
          position: relative;
          box-sizing: border-box;
          width: 88px;
          height: 20px;
          line-height: 20px;
          background-color: #022627;
          border: 1px solid #5de1d4;
          color: #5de1d4;
          text-align: center;
          line-height: 20px;
          border-radius: 2px;
          cursor: pointer;

          .selectBox {
            display: none;
            position: absolute;
            top: 20px;
            width: 88px;
            background-color: #022627;
            border: 1px solid #5de1d4;
            box-sizing: border-box;
            border-radius: 5px;
            z-index: 999;
          }
        }
        .selectItem {
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
        }
        .selectTitle:hover > .selectBox {
          display: block;
        }
        .selectItem:hover {
          color: #022627;
          background-color: #5de1d4;
        }
      }
    }
    .innerTitle {
      color: #fff;
      font-size: 20px;
      font-weight: bold;
      position: relative;
      .descTitle {
        position: absolute;
        left: 35px;
        top: 7px;
      }
      .detail {
        color: #5de1d4;
        font-size: 12px;
        font-weight: bold;
        position: absolute;
        top: 5px;
        left: 327px;
        cursor: pointer;
      }
    }
    .fengxianNum {
      font-family: Source Han Sans;
      font-size: 20px;
      font-weight: bold;
      line-height: normal;
      letter-spacing: 0em;
      font-feature-settings: 'kern' on;
      color: #ffffff;
      .oneNum {
        position: absolute;
        top: 101px;
        left: 84px;
      }
      .towNum {
        position: absolute;
        top: 101px;
        left: 286px;
      }
    }
    .listBox {
      width: 392px;
      height: 24px;
      background: #053a3b;
      margin: 107px 14px 10px;
      .listBox_title {
        display: flex;
        font-family: Source Han Sans;
        font-size: 12px;
        font-weight: bold;
        line-height: normal;
        letter-spacing: 0px;
        color: #2fc4b2;
        .title_l {
          margin: 4px 48px 3px 16px;
        }
        .title_r {
          margin-top: 4px;
        }
      }
      .listBody {
        margin-top: 10px;
        height: 466px;
        //overflow-y: scroll;
        overflow-x: hidden;
        .subListBody {
          display: flex;
          margin-bottom: 4px;
          width: 392px;
          height: 29px;
          opacity: 1;
          background: #053a3b;
          font-family: Source Han Sans;
          font-size: 12px;
          font-weight: normal;
          line-height: normal;
          letter-spacing: 0px;
          color: #2fc4b2;
          .listBody_1L {
            margin: 6px 23px 3px 14px;
            font-weight: bold;
            color: #de0202;
            line-height: normal;
            letter-spacing: 0px;
            display: flex;
            .listBody_1L_icon {
              width: 14.99px;
              height: 16.01px;
              margin-right: 10px;
              background-image: url('@/assets/danger/L2_hong.png');
            }
          }
          .listBody_2L {
            margin: 6px 23px 3px 14px;
            font-weight: bold;
            color: #f3772a;
            line-height: normal;
            letter-spacing: 0px;
            display: flex;
            .listBody_2L_icon {
              width: 14.99px;
              height: 16.01px;
              margin-right: 10px;
              background-image: url('@/assets/danger/L2_cheng.png');
            }
          }
          .listBody_R {
            margin-top: 6px;
          }
        }
        .subListBody:hover {
          cursor: pointer;
          font-weight: bold;
          background: #085758;
        }
      }
    }
  }

  .R1 {
    background-image: url('@/assets/danger/R1.png');
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    width: 420px;
    height: 332px;
    top: 72px;
    right: 11px;
    .innerTitle {
      color: #fff;
      font-size: 20px;
      font-weight: bold;
      position: relative;
      .descTitle {
        position: absolute;
        left: 35px;
        top: 7px;
      }
      .detail {
        color: #5de1d4;
        font-size: 12px;
        font-weight: bold;
        position: absolute;
        top: 5px;
        left: 327px;
        cursor: pointer;
      }
    }
    .liuchengNum {
      font-family: Source Han Sans;
      font-size: 32px;
      font-weight: bold;
      line-height: normal;
      text-align: right;
      letter-spacing: 0em;
      font-feature-settings: 'kern' on;
      color: #ffffff;
      .qiyeNum {
        position: absolute;
        top: 213px;
        left: 19px;
        width: 130px;
        text-align: center;
      }
      .daibanNum {
        position: absolute;
        top: 213px;
        left: 146px;
        width: 130px;
        text-align: center;
      }
      .wanjieNum {
        position: absolute;
        top: 213px;
        left: 276px;
        width: 130px;
        text-align: center;
      }
    }
  }

  .R2 {
    background-image: url('@/assets/danger/R2.png');
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    width: 420px;
    height: 622px;
    top: 414px;
    right: 11px;
    .innerTitle {
      color: #fff;
      font-size: 20px;
      font-weight: bold;
      position: relative;
      .descTitle {
        position: absolute;
        left: 30px;
        top: 7px;
      }
      .detail {
        color: #5de1d4;
        font-size: 12px;
        font-weight: bold;
        position: absolute;
        top: 8px;
        left: 327px;
        cursor: pointer;
      }
    }
    .liuchengNum {
      font-family: Source Han Sans;
      font-size: 20px;
      font-weight: bold;
      line-height: normal;
      text-align: right;
      letter-spacing: 0em;
      font-feature-settings: 'kern' on;
      color: #ffffff;
      .oneNum {
        position: absolute;
        top: 114px;
        left: 87px;
        width: 110px;
        text-align: center;
      }
      .towNum {
        position: absolute;
        top: 114px;
        left: 285px;
        width: 110px;
        text-align: center;
      }
      .threeNum {
        position: absolute;
        top: 214px;
        left: 87px;
        width: 110px;
        text-align: center;
      }
      .fourNum {
        position: absolute;
        top: 214px;
        left: 285px;
        width: 110px;
        text-align: center;
      }
    }

    #R2_echarts {
      margin-top: 200px;
      width: 420px;
      height: 350px;
    }
  }
}
.headerTitle {
  background-image: url('@/assets/common/HEAD@1x (1).png');
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  box-sizing: border-box;
  width: 1920px;
  height: 102px;
  text-align: center;
  padding-top: 9px;
  font-size: 40px;
  color: #fff;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}
.footerNav {
  background-image: url('@/assets/common/组 48054@1x.png');
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  width: 1920px;
  height: 48px;
  position: absolute;
  left: 0;
  bottom: 0;
}
.areaSelect {
  background-image: url('@/assets/common/Buttom_Nav@1x.png');
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  width: 684px;
  height: 30px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 52px;
}
.topProjectSelect {
  .top1 {
    width: 195px;
    height: 96px;
    position: absolute;
    top: 105px;
    left: 558px;
    background-image: url('@/assets/common/组 48064@1x.png');
    background-size: cover;
    background-repeat: no-repeat;
  }
 
  .top2 {
    left: 766px;
    background-image: url('@/assets/common/组 48065@1x.png');
  }
  .top3 {
    left: 973px;
    background-image: url('@/assets/common/组 212@1x.png');
  }
  .top4 {
    left: 1190px;
    background-image: url('@/assets/common/组 48067@1x.png');
  }
  .bottom1 {
    top: 232px;
    background-image: url('@/assets/common/组 48068@1x.png');
  }
  .bottom2 {
    left: 766px;
    background-image: url('@/assets/common/组 48069@1x.png');
  }
  .bottom3 {
    left: 973px;
    background-image: url('@/assets/common/组 48063@1x.png');
  }
  .bottom4 {
    left: 1190px;
    background-image: url('@/assets/common/组 48070@1x.png');
  }
}
.sheBeiZuo1dialogVisible {
  width: 960px;
  height: 580px;
  background-image: url('@/assets/factory/矩形 201@1x.png');
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 350px;
  .closeX {
    display: flex;
    justify-content: right;
    padding: 4px;
    img {
      cursor: pointer;
    }
  }
  .title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    padding-left: 30px;
    margin-bottom: 8px;
    .subTitle {
      color: #9e9e9e;
      font-size: 12px;
    }
  }
  .table {
    padding: 0 30px;
    .el-table .warning-row {
      background-color: transparent;
      background: #022627 !important;
    }
    .el-table::before {
      display: none;
    }
  }
  .footerPage {
    width: 100%;
    text-align: center;
    margin: 20px auto 0;

    ::v-deep .el-pagination.is-background .el-pager li:not(.disabled).active {
      background-color: #62c1b2 !important; // 进行修改选中项背景和字体
      color: #fff;
    }
  }
  .picBox {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 44px;
    margin-bottom: -31px;
    box-sizing: border-box;
    img {
      width: 429px;
      height: 214px;
      margin-bottom: 31px;
    }
  }
  ::v-deep .el-table__empty-block {
    background-color: #053a3b !important;
    border: none;
    .el-table__empty-text {
      color: #fff;
    }
  }
}
</style>
